package TokenRecognizer;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jefoutta
 */

public class Transition{
    
    private Character label;
    private State from;
    private State to;

    public Transition(Character tlabel){
        label = tlabel;
    }

    public Character getLabel(){
        return label;
    }

    public String toString(){
        return label.toString();
    }

    public void setFrom(State st){
        from = st;
    }

    public void setTo(State st){
        to = st;
    }

    public State getFrom(){
        return from;
    }

    public State getTo(){
        return to;
    }
}